home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / cmsrc392.zip / ITALL.MF < prev    next >
Text File  |  1992-03-30  |  21KB  |  460 lines

  1. % Computer Modern Italic lower case:
  2. % This lowercase italic alphabet was prepared by D. E. Knuth in December, 1979,
  3. % inspired by the Monotype faces used in {\sl The Art of Computer Programming}.
  4. % The programs were revised for the new \MF\ conventions in 1985.
  5.  
  6. % Character codes \0141 through \0172 are generated.
  7.  
  8. cmchar "Italic letter a";
  9. beginchar("a",9u#,x_height#,0);
  10. italcorr 1/3x_height#*slant+.5hair#+.5u#;
  11. adjust_fit(0,0); pickup fine.nib;
  12. pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270);
  13. pos4(stem,0); x4=x0; y4+.5stem=vround .98h;
  14. x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve);
  15. rt x4r=hround(w-2.5u+.5stem);
  16. top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3];
  17. filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2)
  18.  & pulled_arc.e(2,3) & super_arc.e(3,0);  % bowl
  19. x5=x4; x7=w; hook_out(5,6,7);  % closing hook
  20. filldraw circ_stroke z4e--z5e;  % stem
  21. math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
  22. penlabels(0,1,2,3,4,5,6,7); endchar;
  23.  
  24. cmchar "Italic letter b";
  25. beginchar("b",8u#,asc_height#,0);
  26. italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi;
  27. adjust_fit(0,0); pickup tiny.nib;
  28. pos1(stem,0); pos2(stem,0); x1=x2;
  29. lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height;
  30. filldraw stroke z1e--z2e;  % stem
  31. sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % serif
  32. pickup fine.nib; pos2'(stem,-180); pos3(vair,-90);
  33. pos4(curve,0); pos5(vair,90); pos0(hair,180);
  34. z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve);
  35. bot y3r=-oo; top y5r=x_height+oo; y4=y2;
  36. filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4)
  37.  & pulled_arc.e(4,5) & super_arc.e(5,0);  % bowl
  38. math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
  39. penlabels(0,1,2,3,4,5); endchar;
  40.  
  41. cmchar "Italic letter c";
  42. beginchar("c",8u#,x_height#,0);
  43. italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi;
  44. adjust_fit(0,0); pickup fine.nib;
  45. pos0(flare,0); pos1(hair,0); pos2(vair,90);
  46. pos3(curve,180); pos4(vair,270); pos5(hair,320);
  47. x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-u))+eps;
  48. lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5;
  49. y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0);  % bulb
  50. bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height;
  51. path p; p=z4{right}..z5..z6;
  52. filldraw stroke pulled_arc.e(2,3)
  53.  & pulled_arc.e(3,4)...{direction 1 of p}z5e;  % arc
  54. math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
  55. penlabels(0,1,2,3,4,5,6); endchar;
  56.  
  57. cmchar "Italic letter d";
  58. beginchar("d",9u#,asc_height#,0);
  59. italcorr max(1/3x_height#*slant+.5hair#+.5u#,
  60.   h#*slant+.5stem#-2u#) if math_fitting:-.5u# fi;
  61. adjust_fit(0,0); pickup fine.nib;
  62. pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270);
  63. x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve);
  64. x4+.5stem=hround(w-2.5u+.5stem);
  65. top y1r=x_height+oo; bot y3r=-oo; y0=y2=.5[y1,y3];
  66. filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2)
  67.  & pulled_arc.e(2,3) & super_arc.e(3,0);  % bowl
  68. x5=x0; x7=w; hook_out(5,6,7);  % closing hook
  69. pickup tiny.nib; pos5'(stem,0); pos4(stem,0);
  70. z5'=z5; top y4=h; filldraw stroke z4e--z5'e;  % stem
  71. sloped_serif.l(4,5',a,1/3,jut,serif_drop);  % serif
  72. math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
  73. penlabels(0,1,2,3,4,5,6,7); endchar;
  74.  
  75. cmchar "Italic letter e";
  76. beginchar("e",8u#,x_height#,0);
  77. italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#);
  78. adjust_fit(0,0); pickup fine.nib;
  79. numeric heavy_hair; heavy_hair=hround .2[hair,stem];
  80. pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90);
  81. pos3(curve,180); pos4(vair,270); pos5(hair,320);
  82. x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u);
  83. lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5;
  84. y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo;
  85. top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6;
  86. filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3)
  87.  & pulled_arc.e(3,4)...{direction 1 of p}z5e;  % arc
  88. math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
  89. penlabels(0,1,2,3,4,5,6); endchar;
  90.  
  91. cmchar "Italic letter f";
  92. beginchar("f",max(1.5u#,stem#)+max(3.5u#,2flare#),asc_height#,desc_depth#);
  93. italcorr asc_height#*slant+.75u#;
  94. adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib;
  95. numeric theta; z88=(.5w-.5u,h); z89=(.5w+.5u,-d); theta=angle(z88-z89);
  96. pos0(flare,0); pos1(hair,0); pos2(vair,90);
  97. pos3(.5[hair,stem],180); pos4(stem,theta+90);
  98. pos5(stem,theta-90); pos6(.5[hair,stem],0);
  99. pos7(vair,-90); pos8(hair,-180); pos9(flare,-180);
  100. rt x1r=hround(w+.25u); lft x8r=hround-.35u; x2=.6[x1,x4]; x7=.6[x8,x5];
  101. y9-.5flare=vround -.85d; y2-y0=y9-y7; top y2r=h+oo; bot y7r=-d-oo;
  102. y4=.25[x_height,h]; y5=.5[-d,y4];
  103. z4=whatever[z88,z89]; z5=whatever[z88,z89];
  104. x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7];
  105. bulb(2,1,0); bulb(7,8,9);  % bulbs
  106. filldraw stroke z2e{left}...z3e...{z89-z88}z4e;  % upper arc
  107. filldraw z4r--z5l--z5r--z4l--cycle;  % stem
  108. filldraw stroke z5e{z89-z88}...z6e...{left}z7e;  % lower arc
  109. pickup crisp.nib; pos20(bar,90); pos21(bar,90);
  110. top y20r=top y21r=x_height;
  111. lft x20=lft x4r-.5stem-u; rt x21=rt x4l+.5stem+1.5u;
  112. filldraw stroke z20e--z21e;  %  crossbar
  113. math_fit(desc_depth#*slant+u#,x_height#*slant);
  114. penlabels(0,1,2,3,4,5,6,7,8,9,20,21,88,89); endchar;
  115.  
  116. cmchar "Italic letter g";
  117. beginchar("g",8u#,x_height#,desc_depth#);
  118. italcorr x_height#*slant+.5stem#-u#;
  119. adjust_fit(0,0); pickup fine.nib;
  120. pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270);
  121. x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve);
  122. x4+.5stem=hround(w-1.5u+.5stem);
  123. top y1r=h+oo; bot y3r=0; y0=y2=.5[y1,y3];
  124. filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2)
  125.  & pulled_arc.e(2,3) & super_arc.e(3,0);  % bowl
  126. pos4(stem,0); y4+.5stem=vround .98h;
  127. pos5(stem,0); x5=x4; y5=-1/3d;
  128. pos6(vair,-90); pos7(hair,-180); pos8(flare,-180);
  129. bot y6r=-d-oo; y8-.5flare=vround -.9d;
  130. lft x8r=hround(2u-.5flare); x6=x1; bulb(6,7,8);  % bulb
  131. filldraw circ_stroke z4e---z5e...{left}z6e;  % stem and arc
  132. math_fit(-min(.3x_height#*slant+.5curve#-u#,1.5u#-desc_depth#*slant),
  133.  ic#-1/3x_height#*slant); penlabels(0,1,2,3,4,5,6,7,8); endchar;
  134.  
  135. cmchar "Italic letter h";
  136. beginchar("h",9u#,asc_height#,0);
  137. italcorr 1/3x_height#*slant+.5hair#+.5u#;
  138. adjust_fit(0,0); pickup tiny.nib;
  139. pos1(stem,0); pos2(stem,0); x1=x2;
  140. lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo;
  141. filldraw circ_stroke z2e--z1e;  % left stem
  142. sloped_serif.l(1,2,a,1/3,jut,serif_drop);  % serif
  143. pickup fine.nib; x4+.5stem=hround(w-2.5u+.5stem);
  144. x5=x4-.25u; ital_arch(2,3,4);  % arch
  145. x7=w; hook_out(5,6,7)(skewed);  % closing hook
  146. filldraw stroke z4e{down}..{-u,-x_height}z5e;  % right stem
  147. math_fit(0,ic#); penlabels(1,2,3,4,5,6,7); endchar;
  148.  
  149. cmchar "Italic letter i";
  150. beginchar("i",5u#,min(asc_height#,10/7x_height#+.5flare#),0);
  151. italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#);
  152. adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib;
  153. x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u;
  154. hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed);  % hooks
  155. filldraw stroke z2e--z3e;  % stem
  156. pos8(flare,0); pos9(flare,90);
  157. x8=.5w if not monospace:-.4(h-x_height)*slant fi; top y9r=h+1;
  158. if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi
  159. x8=x9; y8=.5[y9l,y9r]; dot(8,9);  % dot
  160. math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#);
  161. penlabels(0,1,2,3,4,5,8,9); endchar;
  162.  
  163. cmchar "Italic letter j";
  164. beginchar("j",5u#,min(asc_height#,10/7x_height#+.5flare#),desc_depth#);
  165. italcorr h#*slant+.5stem#-u#;
  166. adjust_fit(if monospace:2u#,.5u# else: 0,0 fi); pickup fine.nib;
  167. x0=0; x2=x3; pos3(stem,0); lft x3l=hround(w-1.5u-.5stem);
  168. hook_in(0,1,2);  % opening hook
  169. pos4(vair,-90); pos5(hair,-180); pos6(flare,-180);
  170. bot y3=-1/3d; bot y4r=-d-oo; y6-.5flare=-vround.9d;
  171. x4=1/3(w-u); lft x5r=min(hround-.5u,lft x5r+x4-x5l-eps);
  172. filldraw stroke z2e---z3e...{left}z4e;  % stem and arc
  173. bulb(4,5,6);  % bulb
  174. pos8(flare,0); pos9(flare,90);
  175. rt x8r=rt x2r if not monospace:-.6(h-x_height)*slant fi; top y9r=h+1;
  176. if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi
  177. x8=x9; y8=.5[y9l,y9r]; dot(8,9);  % dot
  178. math_fit(desc_depth#*slant,x_height#*slant+.5stem#-u#);
  179. penlabels(0,1,2,3,4,5,6,8,9); endchar;
  180.  
  181. cmchar "Italic letter k";
  182. beginchar("k",8u#,asc_height#,0);
  183. italcorr x_height#*slant;
  184. adjust_fit(0,0); pickup tiny.nib;
  185. pos1(stem,0); pos2(stem,0); x1=x2;
  186. lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo;
  187. filldraw circ_stroke z2e--z1e;  % left s